Skip to content

Add topology as sample filter input#1728

Open
nicolemarsaglia wants to merge 10 commits into
developfrom
task/2026_05_19_sample_topology
Open

Add topology as sample filter input#1728
nicolemarsaglia wants to merge 10 commits into
developfrom
task/2026_05_19_sample_topology

Conversation

@nicolemarsaglia

Copy link
Copy Markdown
Contributor

Users can specify a topology that is present in their dataset to use as the input for the sample filter

@nicolemarsaglia
nicolemarsaglia requested a review from cyrush June 4, 2026 17:54

@cyrush cyrush left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Two suggestions:

See inline suggestion about using a conduit helper to simplify grabbing domain pointers.

For the topology sample outputs (the plane and sphere results) -- lets also render those and have baselines for them. Helps us visually confirm the sampling is working as expected.

conduit::Node sample_mesh;
if(rank == 0)
{
std::vector<const conduit::Node*> domains;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conduit provides a helper to grab domain pts regardless of single or multiple domain meshes, here is an example:

https://github.com/llnl/conduit/blob/42e80cc194fd88de2f52b36e58f5ce03906d34ab/src/libs/blueprint/conduit_blueprint_mesh_utils.cpp#L479

lets use this to reduce code

…eplace how we are grabbing domains in a node
domains.push_back(&blueprint_data->child(i));
}
}
const std::vector<const Node *> domains = blueprint::mesh::domains(*blueprint_data);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants